<?xml version="1.0" encoding="windows-1256" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">

<h:body>

	<ui:composition template="includetemplate.xhtml">
	   	<ui:define name="faceHeader">
	   		<ui:include src="headertemplate.xhtml"/> 
	   	</ui:define>

		<ui:define name="faceContent">
			<table width="100%" class="mainTableStyle" >
				<tr>
					<td style="width:100%;padding-left: 15px" >
						<table width="600" cellspacing="0px" cellpadding="2" class="TableStyle_1" style="background-color: #F0F0F0;">
							<tr>
								<td colspan="2" align="left" style="background-color: #104E8B;color:white;font-weight:bold;height: 20px;">
									Reservierung
								</td>
							</tr>
							<tr>
								<td class="td_font_bold" style="width:200px">Kunde: *</td>
								<td align="left">
									<h:selectOneMenu id="ddlKunde" value="#{reservierungManagement.selectedKunde}"  >
									
										<f:selectItems value="#{reservierungManagement.lstKundenItems}"></f:selectItems>
									</h:selectOneMenu>
 								</td>
							</tr>
							<tr>
								<td class="td_font_bold" style="width:200px">Zahl: *</td>
								<td align="left">
								<h:inputText  size="10" id="txtZahl" value="#{reservierungManagement.zahl}" required="true"></h:inputText></td>
							</tr>
							<tr>
								<td class="td_font_bold" style="width:200px">Von: *</td>
								<td align="left">
								<h:inputText  size="10" id="txtVon" value="#{reservierungManagement.reservierungVon}" required="true"></h:inputText> <b>dd.mm.yyyy</b></td>
							</tr>
							<tr>
								<td class="td_font_bold" style="width:200px">Bis: *</td>
								<td align="left"><h:inputText size="10" id="txtBis"   value="#{reservierungManagement.reservierungBis}" required="true"></h:inputText> <b>dd.mm.yyyy</b> </td>
							</tr>
							<tr>
								<td class="td_font_bold" style="width:200px">Zimmer: *</td>
								<td align="left">
									<h:selectOneMenu id="ddlZimmer" value="#{reservierungManagement.selectedZimmer}" disabled="#{reservierungManagement.checkAvailableZimmer}"  >
									
										<f:selectItems value="#{reservierungManagement.lstZimmerItems}"></f:selectItems>
									</h:selectOneMenu>
 								</td>
							</tr>
						 
							
							<!-- 
							<tr>
								<td class="td_font_bold" style="width:200px;vertical-align: top;">Notiz: *</td>
								<td align="left">
								
									<h:inputTextarea rows="7" styleClass="textWidth_1" id="txtNotiz" value="#{kundeManagement.notiz}" required="true"></h:inputTextarea> 
								</td>
							</tr>
							 -->
							<tr>
								<td class="td_font_bold" style="width:200px">Rabatt: *</td>
								<td align="left"><h:inputText size="10" id="txtRabatt" value="#{reservierungManagement.rabatt}" required="true"></h:inputText> </td>
							</tr>
							<!-- 
							<tr>
								<td class="td_font_bold" style="width:200px">Tel: *</td>
								<td align="left"><h:inputText styleClass="textWidth_1" id="txtTel" value="#{kundeManagement.tel}" required="true"></h:inputText> </td>
							</tr>
							
							
							<tr>
								<td class="td_font_bold" style="width:200px">E-Mail: *</td>
								<td align="left"><h:inputText styleClass="textWidth_1" id="txtEmail" value="#{kundeManagement.email}" required="true"></h:inputText> </td>
							</tr>
							
								<tr>
								<td class="td_font_bold" style="width:200px">WEB: *</td>
								<td align="left"><h:inputText styleClass="textWidth_1" id="txtWeb" value="#{kundeManagement.web}" required="true"></h:inputText> </td>
							</tr>
							
								<tr>
								<td class="td_font_bold" style="width:200px">Fax: *</td>
								<td align="left"><h:inputText styleClass="textWidth_1" id="txtFax" value="#{kundeManagement.fax}" required="true"></h:inputText> </td>
							</tr>
							-->
							<tr>
								<td>&nbsp;</td>
								<td align="left">
									<h:commandButton value="speichern" action="#{reservierungManagement.reserve}" styleClass="buttonStyle"></h:commandButton>
									<h:commandButton value="check availability" action="#{reservierungManagement.checkZimmerAvailabilty}" styleClass="buttonStyle_2"></h:commandButton>
									
									<h:commandButton value="Test Reservation" action="#{reservierungManagement.testReservation}" styleClass="buttonStyle_2"></h:commandButton>
								</td>
							</tr>
							
							
						</table>
					</td>
				</tr>
			</table>	
					
		</ui:define>
	</ui:composition>
</h:body>
</html>